import { createRouter, createWebHistory } from 'vue-router'
import PiniaView from '../views/PiniaView.vue'
import BaseView from '../views/BaseView.vue'
import CartView from '../views/CartView.vue'
import TodoMVC from '../views/TodoMVCView.vue'
import TestView from '../views/TestView.vue'
import TestView2 from '../views/TestView2.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '',
      component: TestView
    },
    {
      path: '/test',
      name: 'test',
      component: TestView
    },{
      path: '/test2',
      name: 'test2',
      component: TestView2
    },
    {
      path: '/base',
      name: 'base',
      component: BaseView
    },
    {
      path: '/pinia',
      name: 'pinia',
      component: PiniaView
    },
    {
      path: '/cart',
      name: 'cart',
      component: CartView
    },
    {
      path: '/todoMVC',
      name: 'todoMVC',
      component: TodoMVC
    },
  ]
})

export default router
